package com.qtcm.nas.cxm.xiaohaopin.service.impl;

import com.qtcm.nas.cxm.xiaohaopin.dao.IDepleteDao;
import com.qtcm.nas.cxm.xiaohaopin.pojo.Commodity;
import com.qtcm.nas.cxm.xiaohaopin.pojo.Crk;
import com.qtcm.nas.cxm.xiaohaopin.pojo.Deplete;
import com.qtcm.nas.cxm.xiaohaopin.service.IDepleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class DepleteService implements IDepleteService {
    @Autowired
    private IDepleteDao depleteDao;

    @Override
    public void addDeplete(Deplete deplete) {
        depleteDao.addDeplete(deplete);
    }

    @Override
    public List<Commodity> findAllComm() {
        return depleteDao.findAllComm();
    }

    @Override
    public void addCrk(Crk crk) {
        depleteDao.addCrk(crk);
    }

    @Override
    public List<Deplete> findAllDep() {
        return depleteDao.findAllDep();
    }

    @Override
    public Deplete findDepleteById(int fid) {
        return depleteDao.findDepleteById(fid);
    }

    @Override
    public void updateRs(int rsl, int did) {
        depleteDao.updateRs(rsl, did);
    }

    @Override
    public void updateCk(int csl, int did) {
        depleteDao.updateCk(csl, did);
    }

    @Override
    public void updateDepR(Date H_Warehousing_time, String name) {
        depleteDao.updateDepR(H_Warehousing_time, name);
    }

    @Override
    public void updateDepC(Date H_Warehousing_time, String name) {
        depleteDao.updateDepC(H_Warehousing_time, name);
    }

    @Override
    public Long findAllJl(String J_letem_name) {
        return depleteDao.findAllJl(J_letem_name);
    }

    @Override
    public Long findCk(String J_letem_name) {
        return depleteDao.findCk(J_letem_name);
    }

    @Override
    public Long findRk(String J_letem_name) {
        return depleteDao.findRk(J_letem_name);
    }

    @Override
    public List<Crk> findCrk() {
        return depleteDao.findCrk();
    }

    @Override
    public List<Crk> findCkSj() {
        return depleteDao.findCkSj();
    }

    @Override
    public List<Crk> findRkSj() {
        return depleteDao.findRkSj();
    }

    @Override
    public List<Deplete> findDate(Date firstDate, Date lastDate) {
        return depleteDao.findDate(firstDate,lastDate);
    }
}
